<div class="intro-cartasur">
  <h3><%= t 'cartasur.forums.posts.createpost' %></h3>
  <%=  t 'cartasur.forums.topictitle' %>: <%= h(@topic.name) %>
</div>
<br/>
<%= form_for @post, url: cartasur_forum_topic_posts_path do |f| %>
    <%= f.error_messages %>

    <% if params[:topic_id] %>
        <input type="hidden" id="cartasur_forum_topic_id" name="cartasur_post[topic_id]" value="<%= params[:topic_id] %>" />
        <input type="hidden" id="cartasur_forum_post_reply_id" name="cartasur_post[reply_post_id]" value="<%= params[:format] %>" />
    <% end %>

    <p>
      <%= f.label :content %><br />
      <label>
        <textarea name="cartasur_post[content]" cols="60" rows="10"><%= @post.try(:content) %></textarea>
      </label>
    </p>
    <p><%= f.submit t 'cartasur.forums.posts.createpost' %></p>
<% end %>